package com.xuxueli.api.exception;

/**
 * description:
 * <p>
 * Date: 2019-04-30
 * <p>
 * Time: 16:13
 *
 * @author zhangxin
 */
public enum JobErrorCode {

    SERVER_ERROR("1001","服务器内部错误"),
    SERVER_NAME_NO_EXISTS("1002","服务应用不存在");

    private String code;
    private String message;

    JobErrorCode(String code, String message){
        this.setCode(code);
        this.setMessage(message);
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "[" + this.code + "]" + this.message;
    }
}
